package com.ccys.db.mapper;

import com.ccys.db.dto.administrator.ClinicSelectListDTO;
import com.ccys.db.dto.masterData.ClinicDto;
import com.ccys.db.entity.TblClinic;
import com.ccys.db.vo.administrator.ClinicSelectListWebVO;
import com.ccys.db.vo.doctor.clinic.GetAllClinicVo;
import com.ccys.db.vo.masterData.ClinicPageQueryVo;
import com.ccys.db.vo.masterData.ClinicQueryByGroupIdVo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.MySqlMapper;

import java.util.List;

/**
 * Created by Mybatis Generator on 2023/12/08
 */
public interface TblClinicMapper extends Mapper<TblClinic>, MySqlMapper<TblClinic> {
    List<ClinicPageQueryVo> findPageClinic(ClinicDto dto);

    List<ClinicQueryByGroupIdVo> findListClinicByGroupId(@Param("groupId") String groupId, @Param("companyId") String companyId, @Param("doctorId") String doctorId);

    /**
     * @description 查询选择诊所
     * @date 2024/1/4
     * @author cloud fly
     */
    List<ClinicSelectListWebVO> companySelectList(ClinicSelectListDTO dto);

    List<GetAllClinicVo> getAllClinicByDoctorIdAndByCompany(@Param("doctorId") String doctorId);

    String findAddressById(@Param("id") String id);
}